<?php

namespace maotool\core\validate\result;

use maotool\core\validate\FormValidateResult;

class FormValidateSuccess implements FormValidateResult
{

    /**
     * @var int
     */
    private $code;

    /**
     * @var string
     */
    private $message;

    public function __construct($message, $code = 200)
    {
        $this->code = $code;
        $this->message = $message;
    }

    public function getCode()
    {
        return $this->code;
    }

    public function setCode($code)
    {
        $this->code = $code;
    }

    public function getMessage()
    {
        return $this->message;
    }

    public function setMessage($message)
    {
        $this->message = $message;
    }

}